﻿using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Mongo
{
    /// <summary>
    /// 对外发送邮件日志
    /// </summary>
    [Collection("email_send_log")]
    public class EmailSendLog : MongoBaseModel
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Field(fieldName: "subject")]
        public string Subject { get; set; } = String.Empty;

        /// <summary>
        /// 发送人
        /// </summary>
        [Field(fieldName: "from")]
        public string From { get; set; } = string.Empty;

        /// <summary>
        /// 接收人
        /// </summary>
        [Field(fieldName: "to")]
        public string To { get; set; } = string.Empty;

        /// <summary>
        /// 抄送人
        /// </summary>
        [Field(fieldName: "cc")]
        public string Cc { get; set; } = string.Empty;

        [Field(fieldName: "content")]
        public string Content { get; set; } = string.Empty;

        /// <summary>
        /// 发送结果(Success or Fail)
        /// </summary>
        [Field(fieldName: "result")]
        public string Result { get; set; } = string.Empty;

        [Field(fieldName: "message")]
        public string Message { get; set; } = string.Empty;

       

    }
}
